package model.doe;

import java.awt.image.BufferedImage;

public class FresnelCylindrical extends Fresnel
{

	double maxValueDoe, minValueDoe;
	private double step;

	public FresnelCylindrical(double DoeHeight, double DoeWidth, double f, double wl, double DoeStep)
	{
		super.fresnelInit(DoeWidth / 2, f, wl);
		this.step = DoeStep;
		widthPointsNumber = (int) (DoeWidth / step);
		heightPointsNumber = (int) (DoeHeight / step);
	}

	public double calculate(double v)
	{
		return super.fresnel(v);
	}
	
	@Override
	public double run(int i, int j) {
		
		return calculate(step * i);
	}
}
